package com.atguigu.gulimall.order.Feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.vo.OrderLastPriceVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeignService {
    @GetMapping("/product/skuinfo/getOrderLaetPrice")
      List<OrderLastPriceVo> getOrderLaetPrice(@RequestParam("skuIds") List<Long> skuIds);

    @GetMapping("/product/spuinfo/getSpuInfoBySkuId")
     R getSpuInfoBySkuId(@RequestParam("skuId")Long skuId);
}
